<!DOCTYPE html>
<html lang="zh-cn" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="renderer" content="webkit">
    <title>个人信息</title>
    <link rel="stylesheet" th:href="@{/css/pintuer.css}">
    <link rel="stylesheet" th:href="@{/css/admin.css}">
    <script th:src="@{/js/jquery.js}"></script>
</head>
<body>
<div class="panel admin-panel">
    <div class="panel-head"><strong><span class="icon-pencil-square-o"></span> 个人信息</strong></div>
    <div class="body-content">
        <form method="post" class="form-x" th:action="@{/changeOwnInfo}">
            <div class="form-group">
                <div class="label">
                    <label>姓名：</label>
                </div>
                <div class="field">
                    <input type="text" class="input" style="width:25%; float:left;" name="userName" th:value="${user.userName}"/>
                    <div class="tips"></div>
                </div>
            </div>
            <div class="form-group">
                <div class="label">
                    <label>性别：</label>
                </div>
                <div class="field">
                    <input type="text" id="url1" name="userSex" th:value="${user.userSex}"class="input tips" style="width:25%; float:left;"  data-toggle="hover" data-place="right" data-image=""  />
                </div>
            </div>
            <div class="form-group">
                <div class="label">
                    <label>联系电话：</label>
                </div>
                <div class="field">
                    <input type="text" class="input" style="width:25%; float:left;" name="userPhone" th:value="${user.userPhone}" />
                </div>
            </div>
            <div class="form-group" >
                <div class="label">
                    <label>邮箱：</label>
                </div>
                <div class="field">
                    <input type="text" class="input" style="width:25%; float:left;" name="userEmail"  th:value="${user.userEmail}"/>
                    <div class="tips"></div>
                </div>
            </div>
            <div class="form-group">
                <div class="label">
                    <label>所属部门：</label>
                </div>
                <div class="field">
                    <input type="text" class="input" style="width:25%; float:left;" name="department"  th:value="${user.department}"/>
                    <div class="tips"></div>
                </div>
            </div>
            <div class="form-group">
                <div class="label">
                    <label>职位：</label>
                </div>
                <div class="field">
                    <input type="text" class="input" style="width:25%; float:left;" name="posts" th:value="${user.posts}" />
                    <div class="tips"></div>
                </div>
            </div>
            <div class="form-group">
                <div class="label">
                    <label></label>
                </div>
                <div class="field">
                    <button class="button bg-main icon-check-square-o" onclick="return push(1)" type="submit"> 修改提交</button>
                    <a class="button bg-main " th:href="@{/ownInfo}">刷新</a>
                </div>
            </div>
        </form>
    </div>
</div>
<script type="text/javascript">

    function push(id){
        if(confirm("您确定要提交修改信息么?")){
            return true;
        }
        return false;
    }
</script>
</body></html>